home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / Small Eiffel 0.4.8 / lib_show / gcd / test_gcd.e < prev   
Text File  |  1997-04-13  |  467b  |  27 lines

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class TEST_GCD
  5.    --   
  6.    -- Have a look to INTEGER/gcd.
  7.    --
  8.    -- Note: SmallEiffel handle recursivity in assertions.
  9.    --
  10. creation {ANY}
  11.    make
  12.    
  13. feature {ANY}
  14.  
  15.    make is
  16.       do
  17.      check
  18.         (3).gcd(4) = 1;
  19.         (4).gcd(4) = 4;
  20.         (8).gcd(4) = 4;
  21.         (9).gcd(8) = 1;
  22.         (9).gcd(12) = 3;
  23.      end;
  24.       end;
  25.      
  26. end -- TEST_GCD
  27.